.class public Lcom/estrongs/android/view/g0;
.super Landroid/webkit/WebChromeClient;
.source "VideoEnabledWebChromeClient.java"

# interfaces
.implements Landroid/media/MediaPlayer$OnPreparedListener;
.implements Landroid/media/MediaPlayer$OnCompletionListener;
.implements Landroid/media/MediaPlayer$OnErrorListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/view/g0$d;
    }
.end annotation


# instance fields
.field private a:Landroid/view/View;

.field private b:Landroid/view/ViewGroup;

.field private c:Landroid/view/View;

.field private d:Lcom/estrongs/android/view/VideoEnabledWebView;

.field private e:Landroid/view/View;

.field private f:Z

.field private g:Landroid/widget/FrameLayout;

.field private h:Landroid/webkit/WebChromeClient$CustomViewCallback;

.field private i:Lcom/estrongs/android/view/g0$d;

.field private j:Ljava/lang/String;

.field k:Ljava/lang/Runnable;

.field private l:Landroid/view/WindowManager$LayoutParams;

.field final m:Landroid/graphics/Rect;

.field private n:Landroid/os/Handler;

.field o:Landroid/view/View$OnTouchListener;


# direct methods
.method private constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/view/g0;->j:Ljava/lang/String;

    .line 3
    new-instance v1, Lcom/estrongs/android/view/g0$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/view/g0$b;-><init>(Lcom/estrongs/android/view/g0;)V

    iput-object v1, p0, Lcom/estrongs/android/view/g0;->k:Ljava/lang/Runnable;

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/view/g0;->l:Landroid/view/WindowManager$LayoutParams;

    .line 5
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/view/g0;->m:Landroid/graphics/Rect;

    .line 6
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/view/g0;->n:Landroid/os/Handler;

    .line 7
    new-instance v0, Lcom/estrongs/android/view/g0$c;

    invoke-direct {v0, p0}, Lcom/estrongs/android/view/g0$c;-><init>(Lcom/estrongs/android/view/g0;)V

    iput-object v0, p0, Lcom/estrongs/android/view/g0;->o:Landroid/view/View$OnTouchListener;

    return-void
.end method

.method public constructor <init>(Landroid/view/View;Landroid/view/ViewGroup;Landroid/view/View;Lcom/estrongs/android/view/VideoEnabledWebView;)V
    .locals 2

    .line 8
    invoke-direct {p0}, Landroid/webkit/WebChromeClient;-><init>()V

    const/4 v0, 0x0

    .line 9
    iput-object v0, p0, Lcom/estrongs/android/view/g0;->j:Ljava/lang/String;

    .line 10
    new-instance v1, Lcom/estrongs/android/view/g0$b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/view/g0$b;-><init>(Lcom/estrongs/android/view/g0;)V

    iput-object v1, p0, Lcom/estrongs/android/view/g0;->k:Ljava/lang/Runnable;

    .line 11
    iput-object v0, p0, Lcom/estrongs/android/view/g0;->l:Landroid/view/WindowManager$LayoutParams;

    .line 12
    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/view/g0;->m:Landroid/graphics/Rect;

    .line 13
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/view/g0;->n:Landroid/os/Handler;

    .line 14
    new-instance v0, Lcom/estrongs/android/view/g0$c;

    invoke-direct {v0, p0}, Lcom/estrongs/android/view/g0$c;-><init>(Lcom/estrongs/android/view/g0;)V

    iput-object v0, p0, Lcom/estrongs/android/view/g0;->o:Landroid/view/View$OnTouchListener;

    .line 15
    iput-object p1, p0, Lcom/estrongs/android/view/g0;->a:Landroid/view/View;

    .line 16
    iput-object p2, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    .line 17
    iput-object p3, p0, Lcom/estrongs/android/view/g0;->c:Landroid/view/View;

    .line 18
    iput-object p4, p0, Lcom/estrongs/android/view/g0;->d:Lcom/estrongs/android/view/VideoEnabledWebView;

    const/4 p1, 0x0

    .line 19
    iput-boolean p1, p0, Lcom/estrongs/android/view/g0;->f:Z

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/view/g0;)Landroid/view/View;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    return-object p0
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 5

    .line 4
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 5
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/q$n;->b(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/String;

    const v2, 0x7f110066

    .line 6
    invoke-virtual {p0, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    aput-object v2, v1, v3

    const v2, 0x7f110071

    .line 7
    invoke-virtual {p0, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    const/4 v4, 0x1

    aput-object v2, v1, v4

    new-instance v2, Lcom/estrongs/android/view/g0$a;

    invoke-direct {v2, p0, p1}, Lcom/estrongs/android/view/g0$a;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    const/4 p0, -0x1

    .line 8
    invoke-virtual {v0, v1, p0, v2}, Lcom/estrongs/android/ui/dialog/q$n;->a([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 9
    invoke-virtual {v0, v3}, Lcom/estrongs/android/ui/dialog/q$n;->d(Z)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method

.method static synthetic b(Lcom/estrongs/android/view/g0;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/estrongs/android/view/g0;->f:Z

    return p0
.end method

.method static synthetic c(Lcom/estrongs/android/view/g0;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/view/g0;->n:Landroid/os/Handler;

    return-object p0
.end method

.method private c()V
    .locals 3

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    invoke-virtual {v1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    const/4 v1, 0x1

    .line 4
    invoke-virtual {v0, v1}, Landroid/view/View;->setClickable(Z)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    const v1, 0x7f080920

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    iget-object v1, p0, Lcom/estrongs/android/view/g0;->o:Landroid/view/View$OnTouchListener;

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 7
    new-instance v0, Landroid/view/WindowManager$LayoutParams;

    invoke-direct {v0}, Landroid/view/WindowManager$LayoutParams;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/view/g0;->l:Landroid/view/WindowManager$LayoutParams;

    const/4 v1, -0x2

    .line 8
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 9
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 10
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->format:I

    const/16 v1, 0x28

    .line 11
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->flags:I

    const/16 v1, 0x35

    .line 12
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    const/16 v1, 0x1e

    .line 13
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->y:I

    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 14
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "window"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    .line 15
    iget-object v1, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    if-eqz v1, :cond_1

    .line 16
    iget-object v2, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 17
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    iget-object v2, p0, Lcom/estrongs/android/view/g0;->l:Landroid/view/WindowManager$LayoutParams;

    invoke-interface {v0, v1, v2}, Landroid/view/WindowManager;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/view/g0;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/view/g0;->j:Ljava/lang/String;

    return-object p0
.end method

.method private d()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v0

    const-string v1, "window"

    invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/WindowManager;

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    invoke-interface {v0, v1}, Landroid/view/WindowManager;->removeView(Landroid/view/View;)V

    const/4 v0, 0x0

    .line 5
    iput-object v0, p0, Lcom/estrongs/android/view/g0;->e:Landroid/view/View;

    :cond_0
    return-void
.end method

.method static synthetic e(Lcom/estrongs/android/view/g0;)Lcom/estrongs/android/view/VideoEnabledWebView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/view/g0;->d:Lcom/estrongs/android/view/VideoEnabledWebView;

    return-object p0
.end method


# virtual methods
.method public a(Ljava/lang/String;)V
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/view/g0;->j:Ljava/lang/String;

    return-void
.end method

.method public a()Z
    .locals 1

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/view/g0;->f:Z

    return v0
.end method

.method public b()Z
    .locals 1

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/view/g0;->f:Z

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/view/g0;->onHideCustomView()V

    const/4 v0, 0x1

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public getVideoLoadingProgressView()Landroid/view/View;
    .locals 2
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->c:Landroid/view/View;

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    .line 2
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->c:Landroid/view/View;

    return-object v0

    .line 4
    :cond_0
    invoke-super {p0}, Landroid/webkit/WebChromeClient;->getVideoLoadingProgressView()Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public onCompletion(Landroid/media/MediaPlayer;)V
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/view/g0;->onHideCustomView()V

    return-void
.end method

.method public onError(Landroid/media/MediaPlayer;II)Z
    .locals 0

    const/4 p1, 0x0

    return p1
.end method

.method public onHideCustomView()V
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/view/g0;->f:Z

    if-eqz v0, :cond_2

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/estrongs/android/view/g0;->g:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->a:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    check-cast v0, Lcom/estrongs/android/widget/FullScrnVideoLayout;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/estrongs/android/widget/FullScrnVideoLayout;->setTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/view/g0;->d()V

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->h:Landroid/webkit/WebChromeClient$CustomViewCallback;

    if-eqz v0, :cond_0

    .line 8
    invoke-interface {v0}, Landroid/webkit/WebChromeClient$CustomViewCallback;->onCustomViewHidden()V

    .line 9
    :cond_0
    iput-boolean v1, p0, Lcom/estrongs/android/view/g0;->f:Z

    .line 10
    iput-object v2, p0, Lcom/estrongs/android/view/g0;->g:Landroid/widget/FrameLayout;

    .line 11
    iput-object v2, p0, Lcom/estrongs/android/view/g0;->h:Landroid/webkit/WebChromeClient$CustomViewCallback;

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/view/g0;->i:Lcom/estrongs/android/view/g0$d;

    if-eqz v0, :cond_1

    .line 13
    invoke-interface {v0, v1}, Lcom/estrongs/android/view/g0$d;->a(Z)V

    .line 14
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 15
    iget-object v0, v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;->p0:Lcom/estrongs/android/ui/guesture/ESGesturePanel;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/estrongs/android/ui/guesture/ESGesturePanel;->a:Z

    .line 16
    invoke-virtual {v0}, Landroid/view/View;->postInvalidate()V

    :cond_2
    return-void
.end method

.method public onPrepared(Landroid/media/MediaPlayer;)V
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/view/g0;->c:Landroid/view/View;

    if-eqz p1, :cond_0

    const/16 v0, 0x8

    .line 2
    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public onShowCustomView(Landroid/view/View;ILandroid/webkit/WebChromeClient$CustomViewCallback;)V
    .locals 0

    .line 40
    invoke-virtual {p0, p1, p3}, Lcom/estrongs/android/view/g0;->onShowCustomView(Landroid/view/View;Landroid/webkit/WebChromeClient$CustomViewCallback;)V

    return-void
.end method

.method public onShowCustomView(Landroid/view/View;Landroid/webkit/WebChromeClient$CustomViewCallback;)V
    .locals 4

    .line 1
    instance-of v0, p1, Landroid/widget/FrameLayout;

    if-eqz v0, :cond_3

    .line 2
    check-cast p1, Landroid/widget/FrameLayout;

    .line 3
    invoke-virtual {p1}, Landroid/widget/FrameLayout;->getFocusedChild()Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x1

    .line 4
    iput-boolean v1, p0, Lcom/estrongs/android/view/g0;->f:Z

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/view/g0;->g:Landroid/widget/FrameLayout;

    .line 6
    iput-object p2, p0, Lcom/estrongs/android/view/g0;->h:Landroid/webkit/WebChromeClient$CustomViewCallback;

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/view/g0;->a:Landroid/view/View;

    const/4 p2, 0x4

    invoke-virtual {p1, p2}, Landroid/view/View;->setVisibility(I)V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    iget-object p2, p0, Lcom/estrongs/android/view/g0;->g:Landroid/widget/FrameLayout;

    new-instance v2, Landroid/view/ViewGroup$LayoutParams;

    const/4 v3, -0x1

    invoke-direct {v2, v3, v3}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    const/4 v3, 0x0

    invoke-virtual {p1, p2, v3, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    invoke-virtual {p1, v3}, Landroid/view/ViewGroup;->setVisibility(I)V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->setEnabled(Z)V

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    invoke-virtual {p1, v1}, Landroid/view/ViewGroup;->setClickable(Z)V

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/view/g0;->b:Landroid/view/ViewGroup;

    check-cast p1, Lcom/estrongs/android/widget/FullScrnVideoLayout;

    .line 13
    iget-object p2, p0, Lcom/estrongs/android/view/g0;->o:Landroid/view/View$OnTouchListener;

    invoke-virtual {p1, p2}, Lcom/estrongs/android/widget/FullScrnVideoLayout;->setTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 14
    invoke-direct {p0}, Lcom/estrongs/android/view/g0;->c()V

    .line 15
    instance-of p1, v0, Landroid/widget/VideoView;

    if-eqz p1, :cond_0

    .line 16
    check-cast v0, Landroid/widget/VideoView;

    .line 17
    invoke-virtual {v0, p0}, Landroid/widget/VideoView;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    .line 18
    invoke-virtual {v0, p0}, Landroid/widget/VideoView;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 19
    invoke-virtual {v0, p0}, Landroid/widget/VideoView;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    .line 20
    new-instance p1, Lcom/estrongs/android/util/g0;

    invoke-direct {p1, v0}, Lcom/estrongs/android/util/g0;-><init>(Ljava/lang/Object;)V

    const-string p2, "mUri"

    invoke-virtual {p1, p2}, Lcom/estrongs/android/util/g0;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 21
    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/estrongs/android/view/g0;->a(Ljava/lang/String;)V

    goto/16 :goto_0

    .line 22
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/view/g0;->d:Lcom/estrongs/android/view/VideoEnabledWebView;

    if-eqz p1, :cond_1

    invoke-virtual {p1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object p1

    invoke-virtual {p1}, Landroid/webkit/WebSettings;->getJavaScriptEnabled()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 23
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string p2, "javascript:"

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "_ytrp_html5_video = document.getElementsByTagName(\'video\')[0];"

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 24
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "if (_ytrp_html5_video !== undefined) {"

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 25
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "JSVideoFullScreenHelper.setVideoSource(_ytrp_html5_video.currentSrc);"

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 26
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "function _ytrp_html5_video_ended() {"

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 27
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "_ytrp_html5_video.removeEventListener(\'ended\', _ytrp_html5_video_ended);"

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 28
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "_VideoEnabledWebView.notifyVideoEnd();"

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 29
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "}"

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 30
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "_ytrp_html5_video.addEventListener(\'ended\', _ytrp_html5_video_ended);"

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 31
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "} else { "

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 32
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "JSVideoFullScreenHelper.setVideoSource(\'\');"

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    .line 33
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 34
    iget-object p2, p0, Lcom/estrongs/android/view/g0;->d:Lcom/estrongs/android/view/VideoEnabledWebView;

    invoke-virtual {p2, p1}, Lcom/estrongs/android/view/VideoEnabledWebView;->loadUrl(Ljava/lang/String;)V

    .line 35
    :cond_1
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/view/g0;->i:Lcom/estrongs/android/view/g0$d;

    if-eqz p1, :cond_2

    .line 36
    invoke-interface {p1, v1}, Lcom/estrongs/android/view/g0$d;->a(Z)V

    .line 37
    :cond_2
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 38
    iget-object p1, p1, Lcom/estrongs/android/pop/view/FileExplorerActivity;->p0:Lcom/estrongs/android/ui/guesture/ESGesturePanel;

    iput-boolean v3, p1, Lcom/estrongs/android/ui/guesture/ESGesturePanel;->a:Z

    .line 39
    invoke-virtual {p1}, Landroid/view/View;->postInvalidate()V

    :cond_3
    return-void
.end method
